package cn.keepme.common.utils;

import java.util.Locale;
import java.util.ResourceBundle;
/**
 * @author sjz
 *
 */
public class PropUtils {
	static int i=0;
	public static String getConfigInfo(String itemIndex){
		String configFile="config";
		try {
			ResourceBundle resource = ResourceBundle.getBundle(configFile,Locale.getDefault());
			i++;
//			System.out.print(resource.getString("type" ) + "!" );
//			System.out.println(i+" : itemIndex= "+itemIndex);
			return resource.getString(itemIndex);
		} catch (Exception e) {
			System.out.println("不能找到config.properties文件");
			return null;
		}
	}
}
